CONFIG_MIPS=y
CONFIG_SYS_TEXT_BASE=0x9fc00000
CONFIG_MIPS_RELOCATION_TABLE_SIZE=0x10000
CONFIG_SYS_MALLOC_F_LEN=0x40000
CONFIG_BOOT_ROM=y
CONFIG_MACH_LOONGSON2_SOC=y
CONFIG_TARGET_LS2H_DEV_REV2_1=y
CONFIG_SYS_LITTLE_ENDIAN=y
CONFIG_CPU_MIPS32_R1=y
CONFIG_DEFAULT_DEVICE_TREE="ls2h_dev_rev2.1"
CONFIG_CMD_IMLS=n
CONFIG_NR_DRAM_BANKS=1
CONFIG_MISC_INIT_R=y

CONFIG_VERSION_VARIABLE=y
CONFIG_BOARD_EARLY_INIT_R=y
CONFIG_BOARD_EARLY_INIT_F=y
CONFIG_LAST_STAGE_INIT=y
CONFIG_DISPLAY_CPUINFO=y
# CONFIG_DISPLAY_BOARDINFO is not set
CONFIG_DISPLAY_BOARDINFO_LATE=y

CONFIG_DEBUG_UART=y
CONFIG_DEBUG_UART_BASE=0xbfe80000
CONFIG_DEBUG_UART_CLOCK=125000000
CONFIG_DEBUG_UART_ANNOUNCE=y

CONFIG_DM_SERIAL=y
CONFIG_SYS_NS16550=y
CONFIG_LOGLEVEL=7
CONFIG_BAUDRATE=115200

CONFIG_SYS_NO_FLASH=y

CONFIG_BOOTDELAY=0
CONFIG_MENU=y
CONFIG_MENU_HAVE_NUM=y
# CONFIG_AUTOBOOT_USE_MENUKEY is not set
CONFIG_AUTOBOOT_MENUKEY=0
CONFIG_CMD_BOOTMENU=y

CONFIG_AUTOBOOT_KEYED=y
CONFIG_AUTOBOOT_DELAY_STR="m"
CONFIG_AUTOBOOT_STOP_STR="c"
# CONFIG_AUTOBOOT_PROMPT is not set

CONFIG_USE_BOOTARGS=y
# CONFIG_BOOTARGS="console=ttyS2,115200 rdinit=/sbin/init"
CONFIG_BOOTARGS="console=ttyS2,115200 root=ubi0:rootfs ubi.mtd=root,2048 rootfstype=ubifs rw noinitrd init=/linuxrc"
CONFIG_USE_BOOTCOMMAND=y
CONFIG_BOOTCOMMAND="setenv bootargs ${bootargs} mtdparts=${mtdparts} video=${video}\;sf probe\;sf read ${fdt_addr} dtb\;nboot kernel\;bootm ${loadaddr}"
CONFIG_CMD_MD5SUM=y

CONFIG_DM_GPIO=y
CONFIG_CMD_GPIO=y
CONFIG_BOARD_LATE_INIT=y
CONFIG_CMD_LED=y
CONFIG_LED=y
CONFIG_LED_BLINK=y
CONFIG_LED_GPIO=y

CONFIG_SPI=y
CONFIG_DM_SPI=y
CONFIG_LS1X_SPI=y
# CONFIG_CMD_SPI is not set
CONFIG_CMD_SF=y
CONFIG_SF_DEFAULT_CS=0
CONFIG_SF_DEFAULT_SPEED=30000000

CONFIG_DM_SPI_FLASH=y
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_BAR=y
CONFIG_SPI_FLASH_EON=y
CONFIG_SPI_FLASH_GIGADEVICE=y
CONFIG_SPI_FLASH_ISSI=y
CONFIG_SPI_FLASH_MACRONIX=y
CONFIG_SPI_FLASH_SPANSION=y
CONFIG_SPI_FLASH_SST=y
CONFIG_SPI_FLASH_STMICRO=y
CONFIG_SPI_FLASH_WINBOND=y
CONFIG_SPI_FLASH_XMC=y
CONFIG_SPI_FLASH_MTD=y
CONFIG_ENV_IS_IN_SPI_FLASH=y

CONFIG_MTD=y
CONFIG_CMD_MTD=y
CONFIG_CMD_MTDPARTS=y

CONFIG_NAND=y
CONFIG_NAND_LS1X=y
CONFIG_BCH=y
CONFIG_CMD_NAND=y
CONFIG_MTDIDS_DEFAULT="nand0=ls1x-nand,nor0=spi0.0"
CONFIG_MTDPARTS_DEFAULT="ls1x-nand:14m(kernel),100m(root),4m(logo),-(user);spi0.0:832k(uboot),32k(uboot_env),32k(spi_user),128k(dtb)"

# CONFIG_VIDEO is not set
# CONFIG_CFB_CONSOLE is not set
CONFIG_DM_VIDEO=y
CONFIG_VIDEO_LS1X=y
CONFIG_SYS_WHITE_ON_BLACK=y
CONFIG_CONSOLE_MUX=y
CONFIG_SYS_CONSOLE_IS_IN_ENV=y
CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
CONFIG_VGA_AS_SINGLE_DEVICE=y
CONFIG_I2C_EDID=y

CONFIG_CMD_BMP=y

CONFIG_AHCI=y
CONFIG_SCSI=y
CONFIG_SCSI_AHCI=y
CONFIG_DM_SCSI=y
CONFIG_AHCI_LOONGSON=y
CONFIG_CMD_SCSI=y
CONFIG_LIBATA=y

CONFIG_CLK=y
CONFIG_CLK_CCF=y
CONFIG_BLK=y
CONFIG_HAVE_BLOCK_DEVICE=y

CONFIG_CMD_FAT=y
CONFIG_CMD_EXT2=y
CONFIG_CMD_EXT4=y
CONFIG_CMD_FS_GENERIC=y
CONFIG_DOS_PARTITION=y
CONFIG_EFI_PARTITION=y
CONFIG_CMD_PART=y
CONFIG_PARTITION_UUIDS=y
CONFIG_FS_EXT4=y
CONFIG_EXT4_WRITE=y
CONFIG_CMD_EXT4_WRITE=y
CONFIG_FS_FAT=y
CONFIG_FAT_WRITE=y
CONFIG_FS_ISOFS=y
CONFIG_CMD_ISOFS=y

CONFIG_MII=y
CONFIG_RGMII=y
CONFIG_PHY_MOTORCOMM=y
CONFIG_PHY_REALTEK=y
# CONFIG_RTL8211E_PINE64_GIGABIT_FIX=y
CONFIG_PHYLIB=y
CONFIG_PHY_ADDR_ENABLE=y
CONFIG_PHY_ADDR=0
CONFIG_DM_ETH=y
# CONFIG_LOONGSON_GMAC is not set
CONFIG_ETH_DESIGNWARE=y
CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_TFTP_BLOCKSIZE=1468

CONFIG_CMD_DHCP=y
CONFIG_CMD_MII=y
CONFIG_CMD_PING=y
CONFIG_CMD_TFTPPUT=y

CONFIG_CMD_POWEROFF=y

CONFIG_CMD_USB=y
CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_USB_HOST=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_GENERIC=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_GENERIC=y

CONFIG_USB_STORAGE=y
CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP=y

CONFIG_DM_I2C=y
CONFIG_SYS_I2C_OCORES=y

CONFIG_DM_RTC=y
CONFIG_TOY_LOONGSON=y
